package com.letfox.ad.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.ad.dao.ADDictionarysDao;
import com.letfox.ad.model.ADDictionary;
import com.letfox.ad.service.ADDictionaryService;

@Service
public class ADDictionaryServiceImpl implements ADDictionaryService {
	
	@Autowired
	private ADDictionarysDao adDictionaryDao;

	@Override
	public int deleteByPrimaryKey(Long id) {
		return adDictionaryDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ADDictionary record) {
		return adDictionaryDao.insert(record);
	}

	@Override
	public ADDictionary selectByPrimaryKey(Long id) {
		return adDictionaryDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKey(ADDictionary record) {
		return adDictionaryDao.updateByPrimaryKey(record);
	}

}
